home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / servers / ls_defs.h < prev    next >
C/C++ Source or Header  |  1990-03-10  |  6KB  |  279 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * Copyright (c) 1988 Carnegie-Mellon University
  5.  * Copyright (c) 1987 Carnegie-Mellon University
  6.  * All rights reserved.  The CMU software License Agreement specifies
  7.  * the terms and conditions for use and redistribution.
  8.  */
  9. /*
  10.  * HISTORY
  11.  * $Log:    ls_defs.h,v $
  12.  * Revision 1.23  89/05/02  11:12:21  dpj
  13.  *     Fixed all files to conform to standard copyright/log format
  14.  * 
  15.  * 23-Jun-88  Daniel Julin (dpj) at Carnegie-Mellon University
  16.  *    Added param.old_nmmonitor.
  17.  *
  18.  * 24-Mar-88  Daniel Julin (dpj) at Carnegie-Mellon University
  19.  *    Added debug.mem.
  20.  *
  21.  * 15-Mar-88  Daniel Julin (dpj) at Carnegie-Mellon University
  22.  *    Added param.syslog.
  23.  *
  24.  * 27-Feb-88  Daniel Julin (dpj) at Carnegie-Mellon University
  25.  *    Added param.compat.
  26.  *
  27.  * 16-Feb-88  Daniel Julin (dpj) at Carnegie-Mellon University
  28.  *    Removed tcp_copy_thresh.
  29.  *
  30.  * 09-Dec-87  Daniel Julin (dpj) at Carnegie-Mellon University
  31.  *    Added tcp_copy_thresh and TCP stats.
  32.  *
  33.  * 06-Dec-87  Daniel Julin (dpj) at Carnegie-Mellon University
  34.  *    Added definitions for the TCP module.
  35.  *
  36.  *  2-Oct-87  Daniel Julin (dpj) at Carnegie-Mellon University
  37.  *    Added auto-configuration parameters and deltat debug.
  38.  *
  39.  * 18-Aug-87  Robert Sansom (rds) at Carnegie Mellon University
  40.  *    Added definitions for port statistics.
  41.  *    Added timer_quantum parameter.
  42.  *
  43.  * 14-Jul-87  Robert Sansom (rds) at Carnegie Mellon University
  44.  *    Added encryption statistics.
  45.  *
  46.  * 21-Jun-87  Robert Sansom (rds) at Carnegie Mellon University
  47.  *    Added VMTP statistics.
  48.  *
  49.  * 15-Jun-87  Daniel Julin (dpj) at Carnegie-Mellon University
  50.  *    Added netname to debug record.
  51.  *
  52.  *  8-Jun-87  Daniel Julin (dpj) at Carnegie-Mellon University
  53.  *    Added vmtp to debug record.
  54.  *
  55.  * 19-May-87  Robert Sansom (rds) at Carnegie Mellon University
  56.  *    Added statistics values.
  57.  *    Added crypt_algorithm parameter.
  58.  *
  59.  *  5-May-87  Robert Sansom (rds) at Carnegie Mellon University
  60.  *    Added DeltaT parameters.
  61.  *
  62.  * 23-Apr-87  Robert Sansom (rds) at Carnegie Mellon University
  63.  *    Added SRR parameters.  Added tracing to debug record.
  64.  *
  65.  * 21-Mar-87  Daniel Julin (dpj) at Carnegie-Mellon University
  66.  *    Created.
  67.  *
  68.  */
  69. /*
  70.  * ls_defs.h
  71.  *
  72.  *
  73.  * $Header: ls_defs.h,v 1.23 89/05/02 11:12:21 dpj Exp $
  74.  *
  75.  */
  76.  
  77. /*
  78.  * Definitions for the logstat module.
  79.  */
  80.  
  81.  
  82. #ifndef    _LS_DEFS_
  83. #define    _LS_DEFS_
  84.  
  85. #include <sys/types.h>
  86.  
  87. /*
  88.  * Definition for a log record.
  89.  */
  90. typedef    struct    {
  91.     long    code;
  92.     long    thread;
  93.     long    a1;
  94.     long    a2;
  95.     long    a3;
  96.     long    a4;
  97.     long    a5;
  98.     long    a6;
  99. } log_rec_t;
  100.  
  101. typedef    log_rec_t    *log_ptr_t;
  102.  
  103. /*
  104.  * Statistics record.
  105.  */
  106. typedef    struct {
  107.     int    datagram_pkts_sent;
  108.     int    datagram_pkts_rcvd;
  109.     int    srr_requests_sent;
  110.     int    srr_bcasts_sent;
  111.     int    srr_requests_rcvd;
  112.     int    srr_bcasts_rcvd;
  113.     int    srr_replies_sent;
  114.     int    srr_replies_rcvd;
  115.     int    srr_retries_sent;
  116.     int    srr_retries_rcvd;
  117.     int    srr_cfailures_sent;
  118.     int    srr_cfailures_rcvd;
  119.     int    deltat_dpkts_sent;
  120.     int    deltat_acks_rcvd;
  121.     int    deltat_dpkts_rcvd;
  122.     int    deltat_acks_sent;
  123.     int    deltat_oldpkts_rcvd;
  124.     int    deltat_oospkts_rcvd;
  125.     int    deltat_retries_sent;
  126.     int    deltat_retries_rcvd;
  127.     int    deltat_cfailures_sent;
  128.     int    deltat_cfailures_rcvd;
  129.     int    deltat_aborts_sent;
  130.     int    deltat_aborts_rcvd;
  131.     int    vmtp_requests_sent;
  132.     int    vmtp_requests_rcvd;
  133.     int    vmtp_replies_sent;
  134.     int    vmtp_replies_rcvd;
  135.     int    ipc_in_messages;
  136.     int    ipc_out_messages;
  137.     int    ipc_unblocks_sent;
  138.     int    ipc_unblocks_rcvd;
  139.     int    pc_requests_sent;
  140.     int    pc_requests_rcvd;
  141.     int    pc_replies_rcvd;
  142.     int    pc_startups_rcvd;
  143.     int    nn_requests_sent;
  144.     int    nn_requests_rcvd;
  145.     int    nn_replies_rcvd;
  146.     int    po_ro_hints_sent;
  147.     int    po_ro_hints_rcvd;
  148.     int    po_token_requests_sent;
  149.     int    po_token_requests_rcvd;
  150.     int    po_token_replies_rcvd;
  151.     int    po_xfer_requests_sent;
  152.     int    po_xfer_requests_rcvd;
  153.     int    po_xfer_replies_rcvd;
  154.     int    po_deaths_sent;
  155.     int    po_deaths_rcvd;
  156.     int    ps_requests_sent;
  157.     int    ps_requests_rcvd;
  158.     int    ps_replies_rcvd;
  159.     int    ps_auth_requests_sent;
  160.     int    ps_auth_requests_rcvd;
  161.     int    ps_auth_replies_rcvd;
  162.     int    mallocs_or_vm_allocates;
  163.     int    mem_allocs;
  164.     int    mem_deallocs;
  165.     int    mem_allocobjs;
  166.     int    mem_deallocobjs;
  167.     int    pkts_encrypted;
  168.     int    pkts_decrypted;
  169.     int    vmtp_segs_encrypted;
  170.     int    vmtp_segs_decrypted;
  171.     int    tcp_requests_sent;
  172.     int    tcp_replies_sent;
  173.     int    tcp_requests_rcvd;
  174.     int    tcp_replies_rcvd;
  175.     int    tcp_send;
  176.     int    tcp_recv;
  177.     int    tcp_connect;
  178.     int    tcp_accept;
  179.     int    tcp_close;
  180. } stat_t;
  181.  
  182. typedef    stat_t    *stat_ptr_t;
  183.  
  184.  
  185. /*
  186.  * Debugging flags record.
  187.  */
  188. typedef    struct {
  189.     int    print_level;
  190.     int    ipc_in;
  191.     int    ipc_out;
  192.     int    tracing;
  193.     int    vmtp;
  194.     int    netname;
  195.     int    deltat;
  196.     int    tcp;
  197.     int    mem;
  198. } debug_t;
  199.  
  200. typedef    debug_t    *debug_ptr_t;
  201.  
  202.  
  203. /*
  204.  * Parameters record.
  205.  */
  206. typedef struct {
  207.         int    srr_max_tries;
  208.     int    srr_retry_sec;
  209.     int    srr_retry_usec;
  210.         int    deltat_max_tries;
  211.     int    deltat_retry_sec;
  212.     int    deltat_retry_usec;
  213.     int    deltat_msg_life;
  214.     int    pc_checkup_interval;
  215.     int    crypt_algorithm;
  216.     int    transport_default;
  217.     int    conf_network;
  218.     int    conf_netport;
  219.     int    timer_quantum;
  220.     int    tcp_conn_steady;
  221.     int    tcp_conn_opening;
  222.     int    tcp_conn_max;
  223.     int    compat;
  224.     int    syslog;
  225.     int    old_nmmonitor;
  226. } param_t;
  227.  
  228. typedef param_t *param_ptr_t;
  229.  
  230.  
  231. /*
  232.  * Port statistics record.
  233.  */
  234. typedef struct {
  235.     u_int    port_id;
  236.     u_int    alive;
  237.     u_int    nport_id_high;
  238.     u_int    nport_id_low;
  239.     u_int    nport_receiver;
  240.     u_int    nport_owner;
  241.     u_int    messages_sent;
  242.     u_int    messages_rcvd;
  243.     u_int    send_rights_sent;
  244.     u_int    send_rights_rcvd_sender;
  245.     u_int    send_rights_rcvd_recown;
  246.     u_int    rcv_rights_xferd;
  247.     u_int    own_rights_xferd;
  248.     u_int    all_rights_xferd;
  249.     u_int    tokens_sent;
  250.     u_int    tokens_requested;
  251.     u_int    xfer_hints_sent;
  252.     u_int    xfer_hints_rcvd;
  253. } port_stat_t, *port_stat_ptr_t;
  254.  
  255. extern port_stat_ptr_t    port_stat_cur;
  256. extern port_stat_ptr_t    port_stat_end;
  257. extern struct mutex    port_stat_lock;
  258.  
  259.  
  260. /*
  261.  * Types for the mem_list operation.
  262.  *
  263.  * XXX These must be faked, because we cannot include mem.h here
  264.  * (mutual includes).
  265.  */
  266. typedef char            *mem_class_ptr_t;
  267. typedef char            *mem_nam_ptr_t;
  268. typedef int            *mem_bucket_ptr_t;
  269.  
  270.     
  271. /*
  272.  * Definitions for print_level.
  273.  */
  274. #define    LS_PRINT_NEVER        5
  275. #define    LS_PRINT_LOG        3
  276. #define    LS_PRINT_ALWAYS        0
  277.  
  278. #endif    _LS_DEFS_
  279.